(function(){
		$('#soso_tag>li').click(function(){
			var t = $(this).attr("tag");
			$('#soso').val(t);
		});
		
		//隐藏 展开 更多搜索条件 7~44行
		$('#sun-hide').click(function(){
			$('#sun-hide').hide();
			$('#sun-show').show();
			$('#sun-show-dl').hide('300');
			document.cookie="userId=1"; 
		})
		$('#sun-show').click(function(){
			$('#sun-show').hide();
			$('#sun-hide').show();
			$('#sun-show-dl').show('300');
			document.cookie="userId=0"; 
		})
		//设置两个cookie 
		//document.cookie="userId=125"; 
		//document.cookie="userName=hulk"; 
		//获取cookie字符串 
		var strCookie=document.cookie; 
		//将多cookie切割为多个名/值对 
		var arrCookie=strCookie.split("; "); 
		var userId; 
		//遍历cookie数组，处理每个cookie对 
		for(var i=0;i<arrCookie.length;i++){ 
		var arr=arrCookie[i].split("="); 
		//找到名称为userId的cookie，并返回它的值 
		if("userId"==arr[0]){ 
			userId=arr[1]; 
			break; 
					} 
		} 
		//alert(userId);
		if(userId == 1){
				$('#sun-show-dl').hide();
				$('#sun-hide').hide();
			}else{
				$('#sun-show.dl').show('300');
				$('#sun-show').hide();
			}
})()